package cn.ad.server.domain.ad;

import cn.ad.server.domain.enumration.Connection;
import cn.ad.server.domain.enumration.OS;
import cn.ad.server.domain.enumration.Operator;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 策略对应设备信息map
 * 
 * @author Wang Wei
 *
 */
public class StrategyDeviceMap implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = -2635684283732436684L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "strategydevicemap";

	private long id;
	private long strategyId;
	private Date createTime;
	private Date updateTime;
	private int status;
	private String connectType;
	private List<Connection> connectTypeList;
	private String os;
	private List<OS> osList;
	private String operator;
	private List<Operator> operatorList;

	public static String cacheKey(long id) {
		return new StringBuffer(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getStrategyId() {
		return strategyId;
	}

	public void setStrategyId(long strategyId) {
		this.strategyId = strategyId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getConnectType() {
		return connectType;
	}

	public void setConnectType(String connectType) {
		this.connectType = connectType;
	}

	public List<Connection> getConnectTypeList() {
		return connectTypeList;
	}

	public void setConnectTypeList(List<Connection> connectTypeList) {
		this.connectTypeList = connectTypeList;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public List<OS> getOsList() {
		return osList;
	}

	public void setOsList(List<OS> osList) {
		this.osList = osList;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public List<Operator> getOperatorList() {
		return operatorList;
	}

	public void setOperatorList(List<Operator> operatorList) {
		this.operatorList = operatorList;
	}

	

}
